package org.idea.spring.bean.source.service;

import org.idea.spring.bean.source.config.MyConfig;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author linhao
 * @Date created in 10:40 上午 2021/5/3
 */
@Service
public class UserServiceB {

    @Resource
    private MyConfig myConfig;

    public String doGetConfigProperty(){
        return myConfig.getName();
    }

    public MyConfig getMyConfig() {
        return myConfig;
    }
}
